package com.bruce.tool.push.jpush.entity;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author Bruce(刘正航)
 */
@NoArgsConstructor(staticName = "create")
public class JpushSmsMessage {
    @Getter
    @JsonProperty("temp_id")
    private Integer tempId;

    /**{"code":"123456"}**/
    @Getter
    @JsonProperty("temp_para")
    private TempPara tempPara;
    @Getter
    @JsonProperty("delay_time")
    private Integer delayTime;
    @Getter
    @JsonProperty("active_filter")
    private Boolean activeFilter;

    public JpushSmsMessage tempId(Integer tempId){
        this.tempId = tempId;
        return this;
    }

    public JpushSmsMessage delayTime(Integer delayTime){
        this.delayTime = delayTime;
        return this;
    }

    public JpushSmsMessage activeFilter(Boolean activeFilter){
        this.activeFilter = activeFilter;
        return this;
    }

    public JpushSmsMessage tempPara(TempPara tempPara){
        this.tempPara = tempPara;
        return this;
    }

    @NoArgsConstructor(staticName = "create")
    public static class TempPara {
        @Getter
        private String code;
        public TempPara code(String code){
            this.code = code;
            return this;
        }
    }
}
